package com.itheima.pojo;

import lombok.Data;

@Data
public class LoginInfo {
    private Integer id;
    private String username;
    private String name; // 若表中无 name 字段，可根据需求调整
    private String avatar;
    private String userType; // 可根据 role 映射
    private String address;
    private String phone;
    private String token; // JWT 令牌

    // 构造方法（根据实际需求调整字段）
    public LoginInfo(Integer id, String username, String avatar,
                     String role,  String token) {
        this.id = id;
        this.username = username;
        this.avatar = avatar;
        this.userType = role; // 简单映射，可根据需求扩展
        this.token = token;
    }
}